package com.ghpt.service.impl;
import com.ghpt.mapper.HeDianMapper;
import com.ghpt.pojo.HeDian;
import com.ghpt.service.HeDianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HeDianServiceImpl implements HeDianService {
    @Autowired
    private HeDianMapper heDianMapper;

    @Override
    public HeDian findHeDianById(Long id) {
        if (id != null) {
            return heDianMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(HeDian heDian) {
        return heDianMapper.updateById(heDian);//更新成功为1否则为0
    }
}
